﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Koonsoft.HYCRM.BLL;

public partial class Auditors_ProfitTax : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string company = Request.QueryString["CompanyID"];
            string orderid = Request.QueryString["orderid"];

            TextBox2.Text = new AuditorsBLL().GetEvaluation(company, orderid);
        }
    }

    protected void Button2_Click(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(TextBox2.Text))
        {
            string company = Request.QueryString["CompanyID"];
            string orderid = Request.QueryString["orderid"];
            new AuditorsBLL().InsertEvaluation(company, orderid, TextBox2.Text.Trim());

        }
    }
}